// JavaScript source code
function viewbase() {
    this.name = "viewbase";
}

viewbase.prototype.showit = function (ajaxtype,ajaxbase,successFunc) {
    if (ajaxtype){
        $.ajax({
            type: ajaxbase.type,
            url: ajaxbase.url,
            dataType: "json",
            async: false
        })
    }else{
        $.ajax({
            type: ajaxbase.type,
            url: ajaxbase.url,
            data: ajaxbase.data,
            success: successFunc,
            dataType: ajaxbase.dataType
        })
    }
}